package cn.hfatec.shms.web.vip.vipXxb.dao;

import java.util.List;

import cn.hfatec.shms.web.vip.vipXxb.model.VipXxb;
import cn.hfatec.mybatis.mapper.SqlMapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;

import cn.hfatec.shms.web.vip.vipXxb.model.VipXxbParams;

/**
 *
 * @author hfatec
 * @version 1.0
 *
 * the JAVA code is generate by middlegen
 *
 */
@Component("VipXxbDao")
public interface VipXxbDao extends SqlMapper {

    /**
     *
     * 查询数据
     *
    */
    public List queryVipXxb(@Param("params") VipXxbParams params);

    public List listSelect();
    /**
     *
     * 根据主键获取数据
     *
     */
    public VipXxb getVipXxbById(Integer id);
    /**
     *
     * 根据主键获取数据
     *
     */
    public VipXxb getVipXxbByCardno(@Param("cardno")String cardno,@Param("packageName")String packageName);
    /**
     *
     * 根据主键获取数据
     *
     */
    public VipXxb getVipXxbSum(@Param("cardno")String cardno);
    public VipXxb getVipXxbUpdate(@Param("cardno")String cardno,@Param("fgrDoctor")String fgrDoctor);

    /**
     *
     * 根据主键获取数据
     *
     */
    public VipXxb getVipXxbByAmb(String cardno);
    /**
     *
     * 根据主键获取数据
     *
     */
    public VipXxb getVipXxbByFirstReport(String firstReport);

    /**
     *
     * 插入数据
     *
     */
    public void insert(VipXxb vipXxb);

    /**
     *
     * 删除数据
     *
     */
    public void delete(Integer id);

    /**
     *
     * 更新数据
     *
     */
    public void update(VipXxb vipXxb);
}
